<template>
  <div class="quickEntry">
    <!-- 第一行 -->
    <div class="icon-row">
      <div class="icon-row-div">
          <div class="home-icon" @click="QueryCalendar">
            <div style="color: orange" class="iconfont icon-rili icon-item"></div>
            <div>下场日历</div>
          </div>
      </div>
      <div class="icon-row-div">
          <div class="home-icon" @click="goToInfo('/gd/ywdwgd')">
            <div style="color: #5BB1FE" class="iconfont icon-quanbuyewudan icon-item"></div>
            <div>业务单</div>
          </div>
      </div>
    </div>
    <!-- 第二行 -->
    <div class="icon-row">
      <div class="icon-row-div">
        <div class="home-icon" @click="goToInfo('/gd/yjwp')">
          <div style="color: #E6A23C" class="iconfont icon-shiwushangpin icon-item"></div>
          <div>物品邮寄</div>
        </div>
      </div>
      <div class="icon-row-div">
        <div class="home-icon" @click="goToInfo('/gd/khxx')">
          <div style="color: orange" class="iconfont icon-kehuxinxi2 icon-item"></div>
          <div>客户信息</div>
        </div>
      </div>
    </div>
    <!-- 第三行 -->
    <div class="icon-row">
      <div class="icon-row-div">
        <div class="home-icon" @click="goToInfo('/gd/todo')">
          <div style="color: #E44400" class="iconfont icon-document-record icon-item"></div>
          <div>任务待办</div>
        </div>
      </div>
<!--      <div class="icon-row-div">2</div>-->
    </div>

    <el-dialog
      v-if="show"
      title="下场日历"
      :visible.sync="show"
      style="top: -40px"
      width="80%"
      class="dialog-data"
      :append-to-body='true'
      @close="closeDialog">
      <xcrl ref="xcrl"></xcrl>
      <span slot="footer" class="dialog-footer">
        <el-button @click="closeDialog">关 闭</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import xcrl from '@/views/gd/ywdlr/index.vue'
export default {
  name: 'QuickEntry',
  components: { xcrl },
  data() {
    return {
      show: false
    }
  },
  methods:{
    goToInfo(path) {
      this.$router.push(path);
    },
    QueryCalendar() {
      this.show = true
      this.$refs.xcrl.getList()
    },
    closeDialog() {
      this.show = false
    }
  }
}
</script>

<style scoped>

/deep/ .el-dialog__body {
  padding: 0 !important;
}

.quickEntry {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.icon-row {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: row
}

.icon-row-div {
  width: 50%;
  height: 100px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.home-icon {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0px 10px;
  cursor: pointer;
}
.icon-item {
  font-size: 60px;
}
</style>
